package com.zbkj.admin.model.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@ApiModel
public class QuotaFlowReq {
    @ApiModelProperty("额度流水单号")
    private String quotaFlowNo;

    @ApiModelProperty("来源单号")
    private String sourceOrderNo;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("用户名称")
    private String nickName;

    @ApiModelProperty("额度类型")
    private String quotaType;

    @ApiModelProperty("调整类型")
    private String adjustmentType;

    @ApiModelProperty("成功日期-开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate beginDate;

    @ApiModelProperty("成功日期-结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    @ApiModelProperty("流水名称")
    private String flowName;

    @ApiModelProperty("状态")
    private String status;
}
